Improved linked list test