Adds dtd error check to article class w/ test