testcase: fixed Transaction object allocation issue