raft: add tests for maybeappend

k