Fixed CreateDataArray using wrong hasDataArray method, added test