#372: Implementation of txn method

Review, please. (I hope I made the push right this time)
Could you elaborate what needs to be done with this "missing unit test"?