patterntest is following