added unit tests for services