raft: add test for maybeappend change