Use local context on textConnection to support usage within test_that.