Run the tests in the QCoreApplication event loop