Fix a regression in unittest TestFileIO