Fix layout in TextWriterSink

- Removed warnings for unused event in tests.