Refined stub of get_PID_error and joint_stress_test