In test comparison, use capture instead of index to separate fixed and variable parts.

That allows the comparison to actually use some other pattern, such as one involving UUIDs.