added tests for service