Testing the Trie Functions