Some tests might also be helpful in Encode.t.