Tests a GUI