add unit test for sample service and simple endpoint analysis