go: Fix test portability