Test expanded state of the tree nodes: