testing index in the tree