adjust rspec and controller to make ajax tests temporarily pass