Add one test case
Record last active state of state machine
Split mutable method of state machine interface into mutable state machine interface for internal use only