Added one test case for StateMachine.initState