Account voucher migrate new api.

Hello,
i have migrate account vocuher into new api and fixed some tarcebacks and yml test cases.
Thanks.
Don't update the context directly, you can copy the context safely and then update.
Use with_context() to pass updated context.