Make sure we wait for elections to complete when starting repl tests