Fix tests in Rubinius and JRuby.