test generic generation