added is empty check to DequeueTest