Unit test for _huffanTreeFromTable