Added suite failure and test failure detection to tests/run-tests.