localMode instead of testMode

Rename testMode to localMode in the spirit of pull request #13413.

Auditors: eater, alpert