Added trie unit tests