Testing a linear dynamic panel data model against nonlinear alternatives