* add unit test for setting entities with duplicate identifiers * count the number of actual unique identifiers and throw duplicate warning