Make the redirection test pass when valid input is entered.