add tests for "trainer"