Modify GDBScript to run test function automatically