test(gen): Fix file creation test