finetuned list test
added list_index function and additional index checking in all functions that depends on index input
null-terminated variadic argument list for list_new
updated list.c to work with the new test