Use pattern matching against expected error strings that might include internal element names, where the names are default assigned with incrementing integers. When running with CK_FORK=no, there may have been previous tests that ran in the same process and incremented the counters more than when running in the default fork-per-test mode. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7365>