test for class Service