Fix bug in input test which was due to my bad usage of iterator.
Merge pull request #722 from kwhatmough/next

Fix bug in input test which was due to my bad usage of iterator.