JAL-1946 unit tests (and comments) for PID() function