implement match method
write mq.match test code