added more unit tests for services