Updated add_node method to set prev_node in addition to next_node when creating a new node and appending it to the doubly linked list. Old code was from a single linked list. Added test code to ensure anticipated functionality.