updated script for testing on both train and test data