Implements the test runner logic.