testing.T -> io.Writer wrapper