Can call test command in gdb script now, but with bad method, need to improve