Using real pids in tests to make Dialyzer happy

Some other things has to change to make it really happy. :-)