fixed free() call in freeList(), and called free(list) in SimpleTestList