test.root.state function

Test state of root.