Redirect test output to file