Added a nx_queue object and a few unit tests