Add specs for jruby/jruby#612