Improved stubs for GUI testing