fixed Trie
more unit testing