raft: fix promotable
server: fix TestRestoreFromLeader