Fixed a Trie bug where the children were not being added correctly. Also added tests for TrieNode
fixed a broken test case for TrieNode