Undo changes to linked list
Refactor test