add PatternConsumeTest