[api] Moved AllowAnon setting for test to application.rb