Fixing jruby and ruby 1.9 tests