fixes allow_failures for jruby and rubinius