Testing rect drawing from generated XML documents.