474 . In every action brought by an executor or administrator in right of his testator or intestate, such executor or administrator shall, unless the court shall otherwise order, be liable to pay costs to the defendant in case of judgment being entered for the defendant, and in all other cases, in which he would be liable if such plaintiff were suing in his own right upon a cause of action accruing to himself; and the defendant shall have judgment for such costs, and they shall be recovered accordingly. *Executors and administrators liable in costs.*