Fixes QA tests

Huffman encoding and decoding tests were failing even if the functions
being tested worked perfectly fine.