test to check if a server goes offline which is the leader, then whether another election happens