added unit tests for the service