added tests for spec file
updating train