Fix and add tests around article analysis.