Fixing api test