Updated tests to use struct head pattern when specifying a match mode.