Test code for core mq classes