         self.utils = VSSTestUtils(crypto: self.crypto, consts: self.consts)
         self.cardCrypto = VirgilCardCrypto(virgilCrypto: self.crypto)
         self.modelSigner = ModelSigner(cardCrypto: self.cardCrypto)
+        self.cardClient = CardClient(serviceUrl: self.consts.serviceURL!)
     }
 
     override func tearDown() {

            let data = (self.testsDict["STC-3.as_json"] as! String).data(using: .utf8)!
            let dic = try JSONSerialization.jsonObject(with: data, options: [])
            _ = try  cardManager.importCard(fromJson: dic)
        } catch {
            errorWasThrown = true
        }
        XCTAssert(errorWasThrown)
        errorWasThrown = false

        let keyPair = try! self.crypto.generateKeyPair()
        let operation1 = cardManager.publishCard(privateKey: keyPair.privateKey, publicKey: keyPair.publicKey, identity: nil)

        switch operation1.startSync() {
        case .success: XCTFail()
        case .failure: break
        }

        let rawCard = try! RawSignedModel.import(fromBase64Encoded: self.testsDict["STC-3.as_string"] as! String)
        let operation2 = cardManager.publishCard(rawCard: rawCard)

        switch operation2.startSync() {
        case .success: XCTFail()
        case .failure: break
        }

        let operation3 = cardManager.getCard(withId: "some_id")

        switch operation3.startSync() {
        case .success: XCTFail()
        case .failure: break
        }

        let operation4 = cardManager.searchCards(identity: "some_identity")

        switch operation4.startSync() {
        case .success: XCTFail()
        case .failure: break
        }
    }


        
        switch cardManager.searchCards(identity: "Alice").startSync() {
        case .success(_): XCTFail()
        case .failure(let error):
            guard let error = error as? CardManagerError,
                error == .gotWrongCard else {
                    XCTFail()
                    return
            }
        }
    }
}
