go: use json.Encoder in update-test +typo