[libvirt] [test-API][PATCH 1/2] update env_clear for new way of function reference