Testing getLeader from leader election