The naming of any one as executor in a will shall not operate to discharge such executor from any claim which the testator had against him, but the claim shall be included in the inventory. If the person so named afterwards takes upon himself the administration of the estate, he shall be liable for such sum as for so much money in his hands at the time the claim became due and payable; otherwise he is liable for such claim as any other debtor of the deceased.