improve check_process() in start_test_stop