Fixed #7: Ensure stdout/stderr output is captured if a test fails before it runs.

Thanks to Anthony Menasse for the report.