Fix testsuite segfault

two instances of QApplication were created

& turn on stdout capture for a cleaner output