Rename newTxn() to avoid a collision with the var.
Add tests for TxnCtrl.