unit tests written for services