test: add discovery to tests
test: add govet to tests
Merge pull request #1337 from jonboulle/govet

tests: add `go vet` coverage