Communication api for using messages was not clear, this will make it clearer

Added an example for the communication API using the messages.
Moved the message test spec under the right context.