added new test case testTrainConstuctorNotNull