[api] Moving AllowAnon setup for test to environment.rb