Add Pattern and PatternTest