valid-test for trainer