Updated PatternViewHelper test to reflect refactoring