simple priority message queue using mocha tests