Add RedirectedOutputStreamTest.
Add tests for yaml deserialization.