remove extra state.modeTestFail check