Test output redirection bug fixed