* test/ruby/*.rb: Backport from r16175