write test for verify linked list