adding in mocks and spec tests for services