Fix leader tests