Fix test for jruby.