The discharge or bequest in a will of any claim of the testator against a person named as executor therein, or against any other person, shall, as against the creditors of the deceased, be invalid. Such claim shall be included in the inventory, and for all purposes of administration is to be deemed and treated as a specific legacy of that amount.