LinkedList Enumerator fixes

* fix possible segfault
* extend tests.