Added testRunFailure method to ClientTest.