Added unit tests for the services.