Testing the restrictions implied by the rational expectations hypothesis