* fixed issue with membership changes (if leader is removed, cluster will wait for a heartbeat before stopping leader message loop)
* started implementing snapshot related functionality in test state machine