Extract OutputCapture.
Rename itest -> test
Reduce indentation.
Fix build. WTF?