Changing test so input stream exhaustion isn't a problem.