[libvirt] [PATCHv2 1/7] tests: add a function for checking exclusive flags