Created and added TrainDepartureRegisterTest class with both positive and negative test cases.