Fixed findLastOf implementation.
Moved linked list tests into common class.