Fix file creation unit test.