minor test code cleanup
partial fix for LP#1222132: clear XMLSchema.error_log before running a validation
clear RelaxNG/Schematron.error_log before running a validation