Adding call test case and endpoint code