Added test cases for singly linked list