Redirect the test output to a file