Unit testing helper functions in Go