   describe "Check lang and locale memory and stores values after full initialization", ->
 
     originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
-    jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000
+    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
+    #originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
+    #jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000
 
 
     it "should set two chars tag lang and four chars tag locale", (done) ->
-      i18n.browserAcceptLanguages = ['be', 'fr-CA', 'zh-tw', 'fr']
-      i18n.loadUserBrowserAcceptLangs = () -> i18n.browserAcceptLanguages
+      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')

        done()

    it "should have sync store set", (done) ->
      i18n.browserAcceptLanguages = ['be', 'fr-CA', 'zh-tw', 'fr']
      i18n.loadUserBrowserAcceptLangs = () -> i18n.browserAcceptLanguages
      i18n.init ->
        expect(i18n.favLang.syncStoreIsSet).toBe(true)
        expect(i18n.favLocale.syncStoreIsSet).toBe(true)

      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()
