added unit test to service provider