fix tests that try to call register_name_range (and thus #source_range) on ruby18 stmts