Write tests for GUI