Tests for CopyDetector