raft: append entries only if necessary

It is an optimization to handle out-of-ordered msgApp better.

low priority stuff for now
This test name isn't very descriptive. It seems this is doing more than testing append... ?