Add NodeQueue and testing cases for it