Missing flag at file creation in unit tests