Test suite

Added a lot of docstring and other documentation in the test suite. This is based on my limited understanding, as well as comments by @ouziel-slama and @adamkrellenstein .
returns a dump of the DB, a json with raw transactions and the full log.