Add a first automtest, fix bug in error detecting when dispatcher down to ping