added tests for tree_getByIndex(Tree,int)