raft: add test for findConflict
raft: comments for isUpToDate
raft: refactor isUpToDate and add a test
raft: address issues in comments
Merge pull request #1419 from xiangli-cmu/raft_log_test

raft: add test for findConflict