add TranId copy code and test code.