Add unit test for queue