diff --git a/base/schema-objective-c/test/inputs/schema/optional-constraints.schema/default/QTTopLevel.m b/head/schema-objective-c/test/inputs/schema/optional-constraints.schema/default/QTTopLevel.m
index cde7598..5ec2676 100644
--- a/base/schema-objective-c/test/inputs/schema/optional-constraints.schema/default/QTTopLevel.m
+++ b/head/schema-objective-c/test/inputs/schema/optional-constraints.schema/default/QTTopLevel.m
@@ -84,6 +84,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
         if (dict[@"optDouble"] && [dict[@"optDouble"] doubleValue] > 99.5) return nil;
         if (dict[@"optInt"] && [dict[@"optInt"] doubleValue] < 0) return nil;
         if (dict[@"optInt"] && [dict[@"optInt"] doubleValue] > 100) return nil;
+        if (dict[@"optPattern"] && [dict[@"optPattern"] rangeOfString:@"^[a-z]+$" options:NSRegularExpressionSearch].location == NSNotFound) return nil;
         if (dict[@"reqZeroMin"] && [dict[@"reqZeroMin"] doubleValue] < 0) return nil;
         if (dict[@"reqZeroMin"] && [dict[@"reqZeroMin"] doubleValue] > 100) return nil;
         [self setValuesForKeysWithDictionary:dict];
diff --git a/base/schema-objective-c/test/inputs/schema/pattern.schema/default/QTTopLevel.m b/head/schema-objective-c/test/inputs/schema/pattern.schema/default/QTTopLevel.m
index 125073d..9ea35bf 100644
--- a/base/schema-objective-c/test/inputs/schema/pattern.schema/default/QTTopLevel.m
+++ b/head/schema-objective-c/test/inputs/schema/pattern.schema/default/QTTopLevel.m
@@ -78,6 +78,9 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
 {
     if (self = [super init]) {
+        if (dict[@"pattern1"] && [dict[@"pattern1"] rangeOfString:@"a[.]*" options:NSRegularExpressionSearch].location == NSNotFound) return nil;
+        if (dict[@"pattern2"] && [dict[@"pattern2"] rangeOfString:@"b[.]*" options:NSRegularExpressionSearch].location == NSNotFound) return nil;
+        if (dict[@"union"] && [dict[@"union"] rangeOfString:@"(b[.]*)|(c[.]*)" options:NSRegularExpressionSearch].location == NSNotFound) return nil;
         [self setValuesForKeysWithDictionary:dict];
     }
     return self;
diff --git a/base/schema-objective-c/test/inputs/schema/renaming-bug.schema/default/QTTopLevel.m b/head/schema-objective-c/test/inputs/schema/renaming-bug.schema/default/QTTopLevel.m
index bb7ba51..14fbad6 100644
--- a/base/schema-objective-c/test/inputs/schema/renaming-bug.schema/default/QTTopLevel.m
+++ b/head/schema-objective-c/test/inputs/schema/renaming-bug.schema/default/QTTopLevel.m
@@ -231,6 +231,7 @@ NSString *_Nullable QTTopLevelToJSON(QTTopLevel *topLevel, NSStringEncoding enco
 - (instancetype)initWithJSONDictionary:(NSDictionary *)dict
 {
     if (self = [super init]) {
+        if (dict[@"version"] && [dict[@"version"] rangeOfString:@"^\\d{1,5}.{1}\\d{1,5}.{1}\\d{1,5}$" options:NSRegularExpressionSearch].location == NSNotFound) return nil;
         [self setValuesForKeysWithDictionary:dict];
         _fruits = map(_fruits, λ(id x, [QTFruit fromJSONDictionary:x]));
         _vehicles = map(_vehicles, λ(id x, [QTVehicle fromJSONDictionary:x]));
