Test the returning of the array in createGrid