move execute_fsm to separate function in TestIssuer