Fix typos in sumstats doc and update doc test