fix regression in TestDuplicateNames