       res = ''
       call = () ->
         d = Q.defer()
-        ledger.storage.sync.get 'i18n_favLocale', (r) ->
-          if Array.isArray(r.i18n_favLocale)
-            r.i18n_favLocale = r.i18n_favLocale[0]
-          res = r.i18n_favLocale
+        ledger.storage.sync.get '__i18n_favLocale', (r) ->
+          if Array.isArray(r.__i18n_favLocale)
+            r.i18n_favLocale = r.__i18n_favLocale[0]
+          res = r.__i18n_favLocale
           d.resolve(res)
         return d.promise
       call()

      res = ''
      call = () ->
        d = Q.defer()
        ledger.storage.sync.get 'i18n_favLang', (r) ->
          if Array.isArray(r.i18n_favLang)
            r.i18n_favLang = r.i18n_favLang[0]
          res = r.i18n_favLang
          d.resolve(res)
        return d.promise
      call()

  describe "Check lang and locale memory and stores values after full initialization", ->

    originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
    jasmine.DEFAULT_TIMEOUT_INTERVAL = 50000

    beforeEach (done) ->
      ledger.storage.sync.clear ->
        chrome.storage.local.clear -> done()
    #originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
    #jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000


    it "should set two chars tag lang and four chars tag locale", (done) ->
      i18n.loadUserBrowserAcceptLangs = () ->
        i18n.browserAcceptLanguages = ['be', 'fr-CA', 'zh-tw', 'fr']
        Q()
      i18n.init ->
        expect(i18n.favLang.memoryValue).toBe('fr')
        expect(i18n.favLang.chromeStoreValue).toBe('fr')
