Added method to get bread crumbs for tree node #5665

* Added test