raft: add tests for maybeappend

will not happen in our current implementation, might happen in the predictable future.