Should the testator dispose of the whole or part of his property for prayers and pious works for the benefit of his soul, in general terms and without specifying its application, the executor, with the court's approval shall deliver one-half thereof or its proceeds to the church or denomination to which the testator may belong, to be used for such prayers and pious works, and the other half to the State, for the purposes mentioned in article 1013. (747a)