test failed shell command
collect stdout only if flag is set
rename flags