[FIX] Clean up doublyLinkedList functions and tests