Testing the Specification of Econometric Models in Regression and Non-Regression Directions