Update api_controller_test.rb

added follow tests