Fix failing api test