Test fixes

These are some minor bug fixes to the tests I found while testing my libvirt-lxc plugin branch.