t9: Added shell script that catch stderr and write it to file; Added tests for shell script and form appmodels command