Added tests for StateMachine.initFsm