The interest or fruits of the thing bequeathed shall accrue to the benefit of the legatee, from the day of death, and without his having made his claim in court:
1° Where the testator has expressly declared his will, in this respect, in the will;
2° Where a life annuity or pension has been bequeathed by way of maintenance.