Ensure the stdout,stderr is checked for all scenarios