added tests for states and statechart; currently failing