Added some tests for message formatting