skipped mock_open bug with file position reseting