test initializations of list and vector