testing getUnits return array