testing deduplication method