Update all tests for new pattern extraction