test for duplicates