Add unit test for Stream::ReadLine.

Fixes #5077