testPrevNextInLinkedList extended