Fixed specs for jruby and mri 1.9.3