Add test helpers, plus TrieNodeBuilder tests