keep track of voted_for and current_term in log and get rid of useless test