test the message patterns implemented in rabbitmq