Update the `lgtunit` tool to restore the current input and output streams after running each unit test