Return the hex digest string for the pid, fix tests