QAART-180 fixing script and onTestFailure method