test migrated fom TestUniqueId adapted for the new implementation complete