Open state of the tree can be easily saved to cookies. So you can test this functionality by saving the tree state, refreshing the page and restoring the previous state after that.
The tree can be serialized to XML, you should define the level of data serialization in related checkboxes.