Introduce a test for incorrect huffman decoding.

Turns out the truncated packet issue is actually a huffman decoding
issue.