fixed ToSlice
added more tests for singly linked list