Remove debugging code, don't quit QApplication
Make tests trivially runnable without py.test