virt functional tests and testing improvements