We added a test code for gui