The purpose of this test is to check that a redirection after the while output the result in a file