Improve tests for linked_list_t.replace()