     var email: String
     var localID: String
     var phoneNumber: String? = nil
-    var userInfo: [String: String]? = nil
+    var userInfo: [String: String]? = [:]
   }
 
   fileprivate static let phoneNumber = "12345658"

                       FacebookAuthProviderID)
        XCTAssertEqual(Auth.auth().currentUser, authResult.user)

        authBackend?.providerCredentials = facebookCredentials
        authBackend?
          .verifyAssertionCallback = .failure(FIRAuthErrorUtils
            .accountExistsWithDifferentCredentialError(
              withEmail: UserTests.userName,

    // when
    Auth.auth()
      .signIn(with: facebookCredential)
      .flatMap { (authResult) -> Future<AuthDataResult, Error> in
        XCTAssertEqual(authResult.additionalUserInfo?.profile,
                       UserTests.googleProfile as [String: NSString])
        XCTAssertEqual(authResult.additionalUserInfo?.username,
