Register pid tested
The register_pid function now sends the name of the pid it has registered