Fix name leaks in parse_name tests