Add assertions for node->next->prev and node->prev->next values