raft: add TestUnstableTruncateAndAppend