encoder_test.go #2