DF#QCADOOMES-1322 states: fix problem with marking state change as failure