Updated leader flapping test so that ILeaderElectedListener would have correct new signature.