Add test showing how to publish and receive messages using a MessageFactory