Fixed failing API test