Update pattern test to account for changes to the pattern matching interface.

References #2534.