Fix failing test on jruby