Redirecting test output to file