GetTerritories and UpdateTerritories work