Fixed QApplication test.