update system test script
deal with connection loss in application session
always run the watchdog
test for queueing behaviour
abstract publishing for idempotent flushing
add test for flushing