Improved tests and DTDValidator.