change the gui test to C-style