Testator

TESTATOR – the person who makes a will

Merriam-Webster Online Dictionary
testator (noun)
a person who dies leaving a will or in force - testament