Added __str__ function to message.

Made slight changes to test scripts.