     tx =
       _out: {authorizationPaired: "XxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXx"}
     pairingId = "a_random_pairing_id"
-    client = jasmine.createSpyObj('client',['on','off','sendChallenge','rejectPairing','confirmPairing','requestValidation'])
+    client = jasmine.createSpyObj('client',['on','off','once','sendChallenge','rejectPairing','confirmPairing','requestValidation'])
     spyOn(@$, '_getClientFor').and.returnValue(client)
+    spyOn(ledger.api.M2faRestClient.instance, 'wakeUpSecureScreens')
     
     [c, r] = @$.validateTx(tx, pairingId)
 
     expect(r.constructor.name).toBe('Promise')
+
+    expect(ledger.api.M2faRestClient.instance.wakeUpSecureScreens).toHaveBeenCalledWith([pairingId])
 
     expect(@$._getClientFor).toHaveBeenCalledWith(pairingId)
     expect(client.off.calls.count()).toBe(2)

    expect(result[1].constructor.name).toBe('Promise')

  it "prefix pairingId when it save asociated label", ->
    spyOn(ledger.storage.sync, 'set')
    @$.setPairingLabel("a_random_pairing_id", "label")
    expect(ledger.storage.sync.set).toHaveBeenCalledWith("__m2fa_a_random_pairing_id": "label")

  it "remove pairingId prefix when it get all pairing labels", ->
    spyOn(ledger.storage.sync, 'keys').and.callFake (cb) -> cb(["__m2fa_a_random_pairing_id", 'onOtherBadKey'])

    expect(client).toBeDefined()
    expect(@$.Client).toHaveBeenCalledWith(pairingId)
    
    expect(client.on.calls.count()).toBe(3)
    expect(client.on.calls.argsFor(0)[0]).toBe('m2fa.identify')
    expect(client.on.calls.argsFor(0)[1]).toEqual(jasmine.any(Function))
    expect(client.on.calls.argsFor(1)[0]).toBe('m2fa.challenge')
