A testamentary trust is part of your Will, so ending a policy does not cancel the Will or the trust. If the trust is meant to be funded by the policy’s proceeds and the policy has ended before your death, there may be nothing to fund that part of the trust. The result depends on how your Will is worded. Review your Will whenever a policy changes, and speak to a lawyer about the wording. This applies to non-Muslim estates in Peninsular Malaysia.
Legal basis and further reading
General information for Malaysia, not legal advice. For your own situation, speak to a lawyer.