Test insertDuplicate