Fix line endings in DrawTargetBase.
Add tests for new StreamToSink API.