Currently, tests have no way of extracting the current transaction number from the shell's transactions API. Because of this, tests have to manually start transactions through runCommand and awkwardly coordinate an artificial transaction number.
This ticket is to add a testing-only function to get the transaction number from the DriverSession (and internally, the current ServerSession).