add test for dequeue error