Fix test for duplicate entries