Fixed a bug in the GUI test