Improve Go dependency checking, include test deps

Consider test-only dependencies when building the list of packages for
'go get' rule.