Added integration test for encounter by date API
API exceptions inherit from openmrs.api.APIException