Specification tests in panel data models with unobserved effects and endogenous explanatory variables