I started this test uncertain of which tests to include.  In the end I settled on simply replacing what I'd removed from tcp_output_test.go and so encoding was not needed, but was forgotten and left and now removed.