Add option to report exit code of processes when testing

- Also fixed return of exit code in execute_process(), which previously left it
  as a dead squirrel