some changes to preptest and test to compile