add unit test for service