chore: refactor createDid
and transact
tests
#884
Merged
createDid
and transact
tests
#884