double-ended list operations pass tests