Testing the adequacy of semiparametric transformation models