Update encode_test.go