Fix tests on jruby