fixed tests requiring QApplication