fixup pattern tests