add unit test for services