Add testing to truncated file iteration.