Consistent model specification tests : Omitted variables and semiparametric functional forms