fix tests under the jruby platform