fixing tests on jruby