Fix #467. Correct $cordovaPreferences test