added unit test for services