And also fix various memory leaks and other issues that always existed in the tests. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7650>
And also fix various memory leaks and other issues that always existed in the tests. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7650>