add inner method for MtContext
update ut