Also change the unit test to use a real file system to detect errors like this.
Attach a file by drag & drop or click to upload