Test for duplicate items