[libvirt] [PATCH 2/6] tests: Decouple preload code from main()