Fix segfault error on print return cmd
update test suite util