fix tests for jruby