Fix test failures on the spec validation.