more testing scenario for trie
1. refactor test code for trie
2. add test codes for trie.delete
3. make trie.delete works, #46