Fixed more permission and dependency issues

Change-Id: I004bb23031dbb9bb7464d258d9306e7254b2e2a4
diff --git a/t/script/archive_tar.t b/t/script/archive_tar.t
index 666e2c5..a31e9b0 100644
--- a/t/script/archive_tar.t
+++ b/t/script/archive_tar.t
@@ -3,7 +3,7 @@
 use warnings;
 use File::Basename 'dirname';
 use File::Spec::Functions qw/catdir catfile/;
-use File::Temp qw/tempdir/;
+use File::Temp qw/:POSIX tempdir/;
 use Mojo::File;
 use Mojo::Util qw/quote/;
 use Mojo::JSON qw/decode_json/;
@@ -45,12 +45,15 @@
 
 my $input_quotes = "'".catfile($f, '..', 'corpus', 'archives', 'wpd15*.zip') . "'";
 
+my $cache = tmpnam();
+
 $call = join(
   ' ',
   'perl', $script,
   'archive',
   '--input' => $input_quotes,
   '--output' => $output . '.tar',
+  '--cache' => $cache,
   '-t' => 'Base#tokens_aggr',
   '--to-tar'
 );