Rename "for" as "do_range" in test code.