test for operator-pending mode
refactoring: use dictionary for states of each mode