Refactor Huffman tests.