Refactor the golang module tests to use a mocked command and no longer depend on having a particular version of Go installed.