Added UnitTests for MessageQueue helper