added test for service.getter and refactored some tests