completed finding root for treeRep. Test1 passed