Implement tests for DuplicateDetector class