The defendants are the executors of the will of Bobert Sherman, who died on the 26th of December, 1890. About the year 1844 the plaintiff, then a girl less than eleven years of age, went to live in the family of the deceased, her father having died some years before, and her mother in that *81year. During the first four years she attended school a part of the time. In the year 1856 the decedent’s wife died, and subsequently his two only children, who were born after the plaintiff became a member of his household. After the death of the children the family consisted of the decedent and the plaintiff and such other hired help as became necessary in the conduct and management of a small farm. The plaintiff, during all the time up to the death of the testator, was treated by him and by her friends and acquaintances as a member of his family. lie paid to her, from time to time, various small sums of money, and, during the last six months of his life, in different amounts, the sum of $1,000. She seems to have been a saving and prudent woman, for at the time of the death of die testator she had on deposit to her credit in bank the sum of $3,000. During the life of the decedent she ke¡)t no books of account, made no demand for compensation, and nothing appears to indicate that the parties occupied any such relations to each other as master and servant or debtor and creditor. The plaintiff is described by the testator in his will as his adopted daughter, and in that instrument he made for her the following provisions: The sum of one thousand dollars absolutely, the income on $8,000 during her life, and the use, during her life, of the homestead and land, consisting of one and a half acres, where he lived and died, together with the household furniture, fixtures, provisions and family supplies, and also the right, at her election, of burial in the family lot in the cemetery. These bequests not only show that the deceased intended to and did make substantial provisions for the comfortable support of the plaintiff, in view of his condition and circumstances in life, but also that the relations between them were regarded as that of parent and child rather than that of master and servant. The plaintiff brought this action against the executors to recover the value of her services for thirty-eight years, from the year 1852 to the year 1890, when the testator died, and' the various sums received by the plaintiff, from time to time, are treated as payments upon the debt sufficient to avoid the Statute of Limitations. The answer, *82besides putting in issue all tlie material facts upon which the claim is based, and interposing the Statute of Limitations as a bar, alleged payment and set up the provisions of the will as a defense. The learned referee before whom the cause was tried reported in favor of the defendants, and found, as a fact, that prior to the death of the testator it was mutually agreed between him and the plaintiff that the bequests and devises in her favor contained in the will, added to the payments and benefits received from him during his lifetime, should be in full payment, discharge and acquittance of all claims and demands by her for compensation for any labor or services rendered by her during the period stated in the complaint, except upon the contingency which both plaintiff and decedent stated that they feared might happen, that for any reason the will and codicil might fail to be admitted to probate. The will was admitted to probate, and the plaintiff claims all benefits under it, as well as tire right to a recovery in this action. Assuming- that this finding is warranted by the evidence, it imports that the plaintiff and the deceased agreed and intended that the provisions of the will, if they became operative, should discharge any debt that existed in her favor, and that no independent claim as a creditor should survive against the estate. (Sheldon v. Sheldon, 133 N. Y. 4.) These provisions having taken effect according to the intention of the parties, they furnish a complete defense to this action. We think that the finding was not only warranted, bnt was a reasonable and just conclusion from all the facts and circumstances disclosed upon the trial." The two persons who knew most about the actual facts could not testify. The mouth of one was closed by death and the other by the statutory disqualification, and the referee had to base his conclusions upon a variety of facts and circumstances that appeared in the case, as well as upon the testimony of several witnesses who were able to give more or less light in the progress of the inquiry. It is not necessary to comment upon the evidence or to point out the inferences which could properly be drawn from it. It is sufficient to say that, in our opinion, it amply justified the view taken by the referee as to the facts, *83and under the limitations which the law has imposed upon the power of this court over the facts in controversy, the finding must be deemed conclusive.
The record contains numerous exceptions, many of which have been pressed by the learned counsel for the plaintiff, as grounds of reversal, Avith much force and earnestness. Most of them are obviously untenable, but a few are of sufficient importance to require some notice. The first objection is that the finding of fact upon which the referee based his legal conclusions in favor of the defendant was outside the pleadings. It is doubtless true that a material fact found by a court or referee must not only be sustained by proof but by pleading as well. But the defendants had pleaded payment generally, and under that defense were entitled to give proof of any •agreement between the parties in the lifetime of the testator that operated to discharge the debt. It is not necessary generally to state the particular manner in which the obligation Avas extinguished. Any valuable consideration moving from the debtor to the creditor Avliich the parties agree shall operate to satisfy the debt will be given that effect, in the absence of fraud or mistake, especially in the case of debts unsettled and unliquidated. When parties agree that a debt shall be deemed paid and satisfied by a provision in favor of the creditor in a Avill, and that provision is made and the creditor has received the benefit of it, I see no reason to doubt that the facts may be shoAvn under a pleading alleging payment or satisfaction generally. But the referee at the trial, on the application of the counsel for the defendant, permitted the ansvrer to be amended by alleging the agreement to compensate the plaintiff by provision for that purpose in his will, and another of the exceptions challenges the poAver of the referee at the trial to alloAv such an amendment under the Code (§§ 721, 722, 723). This amendment made no substantial change in the nature of the defense. It Avas but an amplification of the plea of payment originally set up by stating the manner in Avliich it was made, and Avhile perhaps unnecessary, the referee had poAver to alloiv it. The plaintiff’s counsel com*84plains that this was done after the proofs were all in, upon some other theory. If the power existed the time and manner of its exercise was within the discretion of the referee, and it cannot be doubted that power existed to conform the pleadings to the proofs. (Code, §§ 539, 540, 541.) There was no claim that the plaintiff was in any way prejudiced by the amendment in the production of her proofs, and it does not appear that she made any application to open the case and give further proof, which was clearly within the power of the-referee to grant. It is further urged that the answer, even as-amended, or the proofs given, do not show that the provisions of the will were equivalent to the debt then due. The parties had the right to agree between themselves what was the plaintiff’s just. due. The claim was unliquidated and of such a. character that it could be legally discharged by such an agreement as the referee found, and this agreement having been executed by the decedent and accepted by the plaintiff it operates to extinguish the claim. The agreement not only provided for the manner of payment, but in legal effect liquidated and adjusted the amount of the debt. The finding-fairly implies that the nature, character and extent of the provisions for her benefit contained in the will were known by or communicated to the plaintiff before the death of the testator, and that with such knowledge she agreed to accept them in satisfaction of her claim. Ho change having been made in the will the plaintiff has now just what she agreed to take, and I see no reason why such an agreement does not bind her in law and equity.
At the trial one of the executors, defendants, who was also a residuary legatee under the will, was called and examined as a witness for the defense. He testified that in the early part of the month of October, before the death of the testator, he had a conversation with the deceased, in the presence of the plaintiff, in which, among other things, he told the witness, what provisions he had made in his will in favor of the plaintiff, and also that she had accumulated already, by living in his family, four or five thousand dollars. This testimony was. *85objected to by plaintiff’s counsel as incompetent under § 829 of the Code. The referee overruled the objection and the plaintiff excepted. The objection was not well taken. The witness gave testimony and was examined, not against but in favor of the personal representatives of the deceased, concerning a personal transaction or communication between him and the deceased, in the presence of the plaintiff. The executor was examined in his own behalf with respect to the conversation, and such testimony is not prohibited by this section of the Code. The plaintiff then became a competent witness to testify in her own behalf in regard to the same transaction and to deny or explain the testimony of the executor if she could. This section prohibits parties from giving testimony in their own behalf or interest against the personal representatives of a deceased person, concerning a personal transaction or communication with the deceased, but it does not prohibit an executor or administrator, who is a party to the suit, from being examined in favor of the estate touching such a transaction, when the adverse party was present participating, and when it is otherwise competent. It opens the door for the admission of testimony from adverse parties that would otherwise be excluded, but if the personal representatives of the deceased elect to take such risk they have the right to do so. This applies not only to the exception mentioned, but to some others appearing on the record, and it is, therefore, unnecessary to discuss them specially. The plaintiff’s counsel offered to show by a witness that a person sitting at a table in the sitting room could not hear the conversation on the porch in front of the room between the deceased and the executor which the latter testified to. The referee excluded the proof offered and there was an exception. We do not think that this ruling presents such an error of law as calls for a reversal, for the reasons: (1) The plaintiff could have been sworn on this point, and could of course have settled the question, so far as she was concerned, Avhether or not she actually heard the coirrersation or Ai'as present as the witness said she Avas. (2) The location and distances were *86fully described, and the referee could draw the conclusion as well as the witness. The question called for an opinion which depended upon so many conditions that it could not lie regarded as anything more than mere speculation. (3) The testimony of the executor was that she was actually present, or at least at a door leading to the porch closed only by a wire screen, and the ‘opinion of a witness as to whether she could or could not hear the conversation when located at another and more distant point in the room was not admissible. It is unnecessary to discuss the other exceptions in the case. They were correctly disposed of in the court below, and even if some of the rulings against which they were directed were open to criticism the plaintiff could not possibly have been prejudiced thereby.
The judgment should, therefore, he affirmed, with costs.
All concur, except Bartlett, J., not sitting.
Judgment affirmed.