Fix for the GUI test mode - the mode variable should be a class variable.
Authored by: bugman 2011-08-25
Parent: [r14445]
Child: [r14447]