unit tests for services