fix specs for jruby