Fix trie constructor on main test