passed static and static-huffman cases