Added better and working framework to test GUI with initial GUI test.