Fix capped deque tests