RESTWS-318: Fix CohortControllerTest

https://tickets.openmrs.org/browse/RESTWS-318