             case .success(let payToken):
                 let json = TestFixture.JSON(by: "token.json")
                 let decoder = JSONDecoder.shared
-                let token = try! decoder.decode(Token.self, from: json)
+                let token = try! Token.decodeJson(with: json, using: decoder)
 
-                XCTAssertEqual(payToken, token)
+                XCTAssertEqual(payToken.identifer, token.identifer)
+                XCTAssertEqual(payToken.used, token.used)
+                XCTAssertEqual(payToken.livemode, token.livemode)
+                XCTAssertEqual(payToken.createdAt, token.createdAt)
+                XCTAssertEqual(payToken.rawValue?.count, token.rawValue?.count)
+                XCTAssertEqual(payToken.card.identifer, token.card.identifer)
+                XCTAssertEqual(payToken.card.rawValue?.count, token.card.rawValue?.count)
                 expectation.fulfill()
             default:
                 XCTFail()

            case .success(let payToken):
                let json = TestFixture.JSON(by: "token.json")
                let decoder = JSONDecoder.shared
                let token = try! decoder.decode(Token.self, from: json)

                XCTAssertEqual(payToken, token)
                expectation.fulfill()
            default:
                XCTFail()

                                case .success(let payToken):
                                    let json = TestFixture.JSON(by: "token.json")
                                    let decoder = JSONDecoder.shared
                                    let token = try! Token.decodeJson(with: json, using: decoder)

                                    XCTAssertEqual(payToken.identifer, token.identifer)
                                    XCTAssertEqual(payToken.used, token.used)
                                    XCTAssertEqual(payToken.livemode, token.livemode)
                                    XCTAssertEqual(payToken.createdAt, token.createdAt)
                                    XCTAssertEqual(payToken.rawValue?.count, token.rawValue?.count)
                                    XCTAssertEqual(payToken.card.identifer, token.card.identifer)
                                    XCTAssertEqual(payToken.card.rawValue?.count, token.card.rawValue?.count)
                                    expectation.fulfill()
                                default:
                                    XCTFail()
