Updated LinkedList and its test case