Fixes to automated tests

This includes clean up of the test code,
a bug fixed with different git output,
improved error handling in some cases,
and place holder scripts for the commands.