adding some unit tests for the services