Fix timing issue in testChangeToVotingWithNoLeader