added test and train