added test case for sevice