Section 2. Any person of sufficient understanding shall be deemed to be a competent witness to a will, notwithstanding any common law disqualification for interest or otherwise; but a beneficial devise or legacy to a subscribing witness or to the husband or wife of such witness shall be void unless there are two other subscribing witnesses to the will who are not similarly benefited thereunder.