hash.go tests