Fixed some duplicate detection tests