Use CountryCode as fallback to build locale.
Add tests for UserContext class.