fixed location prefs tests for ios7 ios8
Merge pull request #3941 from sebv/location-pref-fix

Fixed location pref tests for iOS7 iOS8