[PATCH 6/7] test: Use g_autofree more