Fixed some tests for list.c and enabled the -Wextra flag