This part shall apply to all devises or bequests made in the will of a testator dying on or after May 31, 1968, whether the will is executed before or after such date. This part shall not invalidate a devise or bequest to a trustee made by a will executed prior to May 31, 1968, by a testator dying prior to such date.