Test on the law applicable to the substantive validity of dispositions of property upon death