updated integrationTest_StateDiagram