Fix file creation tests