     request.birthdate = contact.birthday
     request.emailOptIn = (contact.emailOptin != 0)
     request.preferredReward = ""
-    request.male = (contact.gender == "Male")
+    request.gender = contact.gender != nil ? contact.gender! : "Unknown"
     
     coreServiceHandler.registerAccount(request) { (result) in
       

                    XCTAssert(contact!.birthday == request.birthdate, "Contact object is invalid")
                    XCTAssert((contact!.emailOptin != 0) == request.emailOptIn, "Contact object is invalid")
                    XCTAssert(contact!.preferredReward == request.preferredReward, "Contact object is invalid")
                    XCTAssert((contact!.gender == "Male") == request.male, "Contact object is invalid")
                  }
                  
                  let user1Contact = self.getMetadata()!.getRegisteredUser1Contact()
                  let request = UpdateContactRequest()
                  request.firstName = user1Contact.firstName
                  request.lastName = user1Contact.lastName
                  request.phone = user1Contact.phone

          
          if contact != nil {
            
            let request = UpdateContactRequest(contact: contact)
            request.firstName = contact!.firstName! + "1"
            request.lastName = contact!.lastName! + "1"
            request.phone = contact!.phone
