scm: Support test failure expectation.