Fix deduplication test