Make tests pass on jruby