api test fix