Making it work with the visualizer

- Changed tests to repeatedly print json
- This is not what we want semantically, but is ok to test
  if the visualizer works with this code
- Why this is wrong "semantically":
  - Each repetition starts a new experiment with the
    state (re)initialized to "state zero"