unifying state.modeTest ...