TestEnvironment
A helper used to prepare the test environment. Sets up stdout and stderr buffering so that test runner can capture full test output. Used with tests that print something to standard output or stderr.
Workaround for https://youtrack.jetbrains.com/issue/KT-69709/