fix leak in cli command_trie.
more test stuff