Update DocCode validation tests for breaking change in removeValidationError - refactor ValidationError ctor logic