Fix AutoPatternsMixin tests