Coverage for MarkupParser and fixed bugs