Test implementation for queue.