fix specs on jruby