If it appears, on the proof taken before the judge of probate, that the will was duly executed, the testimony of the witnesses must be reduced to writing by him, signed by the witnesses and, with the will, immediately recorded in a book provided and kept for that purpose.