Why you set this path as checking of lxc?
I can just find path /var/lib/libvirt/lxc in my os.And your testcase works well without this check step.

Could you explain to me? Thanks.