unit test unlink protection for tarfile