Wrote unit tests for services