test unit generate array with list comprehensions.