added api test case