added a test for the IndexError in dequeue