Chile’s embattled president faces test in local polls