simple priority message queue class with mocha tests