updated API tests