Improve link validation error message assertions