SYNC-242:Fix failing sync unit tests

https://tickets.openmrs.org/browse/SYNC-242