Increasing test coverage and fixing bugs found while writing tests

I can't imagine that this `print` statement actually works while `stdout` is still pointing to `mystdout`. :smile: