Added tests for huffman encoding