Flush output after notifications
Add a test that replays a blockchain directly into the client