Made functions in AutoPatternsMixins classmethods
Tests