Add test for logging capture.

@matryer How does this look? I originally went the route you suggested and changed Run and all the suite methods to us testing.TB (the interface for both testing.T[est] and testing.B[enchmark]), but because I had to fail a test in there, there was still failure-looking output printed to stdout, so I just went with capturing stdout.