make the test program standalone and depend on dynport/gocli

I'm very new to golang, but this patch is to get the test program working.