Fixed #22681 -- TarArchive has_leading_dir usage bug

Fixed bug in TarArchive.extract call to has_leading_dir. Added tests for testing archives with leadpath. Added tested archives.