Reorganize the way a parent node is set + test
Verify that parent is never `nil`
Fix URI building (build parent before children)