Leader election works in basic scenarios