Unit test the queue implementation.