When any trust company shall be appointed executor, administrator, or trustee of any estate or guardian of the estate of any infant or other incompetent, it shall be lawful for any duly authorized officer of such corporation to take and subscribe for such corporation any and all oaths or affirmations required of such an appointee.