[PATCH v2 4/6] mf/tests: Fix some leaks in transform tests.