fix trie test

I did fix it, meaning it now reads the json file correctly, but 3 test cases are still faling.
It's always a good idea to iterate with a reference. Always correct way is universal reference `auto&& i`.