Improve test coverage.
Improve test coverage.
When processing the response line, treat stream closure as end of line. Fixes #43.