Completed tests for xml validator and completed implementing xml validator