minor fixes in trainings.resource. Tests