Update api_controller_test.rb

broadcast tests