replace deque by list in test app