Wait for process exit status before continuing
Tidy up command line output, tweak testing approach