Simplify code, return 1 on errors.

Cleaned up the startGoTest function and returned errors to the shell correctly.