Add test coverage for serialization of malformed HTLCs.