add junit test case for service