add check if node is already in root, update unit Test