Enable capturing stdout and stderr from tests

To aid in debugging, turn on capturing stdout and stderr from the
unit tests. Comes in handy when you need to throw in a print()
statement to debug a test.

Change-Id: I126fb025068644722baf966dfc8f35b0fd9b5003