Added messageType to MQ.publish method (used by unittests)