Altered unique name test to use a set for name storage.