Add unit test for deque implementation