added service methods and tests.