Added train tests and class