add get node position in tree function
update test