Fix up test runner so that it actually exit the process with the code as the number of failed tests.