Test creation of list of generic objects