test for PID