Preliminary support of nested states
Added test10 (nested states)