Test 4: Validating duplicate detection... Traceback (most recent call last): File "", line 24, in TypeError: string indices must be integers, not 'str'