test createTableFromArray