TransactionRecorder tests
Append head transactions without stack overflow

Implemented with a while loop. Cannot be implemented as tail recursive because of the catch statement.
Pre-review  cleanup
No more consistency error on unexpected reponse + cleanup
Merge pull request #84 from wajam/manu-tx-recorder-tests

TransactionRecorder tests