tests data extraction from an array