StateMachine Integration Test