testing GUI with Qt