Should also be set to `NULL`. If any of the subsequent asserts fails, g_object will be freed again in `_cleanup`