Revert "Use QCoreApplication instead of QApplication for core tests"

This reverts commit 1894f137423431e38957d301bc60a427142d125a.
Try running tests that need GUI with xvfb