In normal mode, press "cc". This is "change this line" command. So Vim should result in insert mode. CodeMirror seems to work correctly, but the FSM does not.
In visual mode, press "c". This terminates the visual mode and allow changing that part. So again, Vim should end up in insert mode. Both CodeMirror and the FSM arrives in Normal mode.
Two cases are involved.