Fix GVariant memory allocation issues for tests

No match.