Slight changes to list.c and its unit tests