First unit tests for LinkedList. Fixes for bugs found in LinkedList.