Account for EOF in testfile