unit tests for trainings resource