Test deduplication