fixed some tests on jruby