Fix method signature for the get trainings endpoint

- Also fix a mocha deprecation warning :grin: