testcases for the list.h module