refactoring of 'TestGui' classes