Modified AbstractService, unit tests.