Make Preferences tests language-agnostic

Change-Id: I2a0bd6e4306de11a8b3f13505bc3e65439211e23
Merge "Make Preferences tests language-agnostic"