singly linked list structure and tests