added test snippet to Go