Modified test/api_queries.rb