Fix implementation so that all tests are run, not just the first one.

N.b. this patch backs out the original implementation and replaces it with
a check for TEST.failed files.
Make sure that tests check runs iff the tests are run