Implemented testing logic in unit test:
- initialize a new state machine instance
- send two tick events with data 1 and 2
- stop in middle of sub2.scxml
- save the state machine to file
- initialize a new state machine instance from the saved file
- send two tick events with data 3 and 4
- verify the state is end in main.scxml