Use QCoreApplication instead of QApplication for core tests