Fixes for runInTransaction

* always pass a value for json in makeReq so that request takes care of sending headers for json and parsing object from response body
* read the correct value for transaction id
* couple of typos and other minor fixes
Thanks for catching this and sorry for committing it, it's a leftover of some tests that shouldn't have been there!