Reformat test code with go fmt.