Fixed api_test.rb