added some flattenArray test functions