Fix the file structure initialization for tests.