Improvements to messaging test program.
Prevent sending messages to non-existent PIDs.
Display ID of sent message.