added api test method