API test fix