Make temp file writable in chunking test