Did you manage to test both conditions? i.e. when `chunk ==` and `!= Input.EOF`.