Fix failing API test