add tests for locations and classes rest calls