fix jruby tests on Rails4.pre