doKeepalive and shutdown moved to protocol level
minor fixes in test and getSlaveInfo