Fix the last failing test for patterns