[CB-3487] Fixed globalization test to include getPreferredLanguage

- added a test to check whether the getPreferredLanguage method exists
- added a test to check the language value on success