add tests to ServiceTest