Update unit testing environment to use mocks

https://tickets.openmrs.org/browse/TRUNK-3586