add test case for Trie