unifying state.modeTest / state.modeTestFail ...
more code coverage for state.modeTestFail