[Libguestfs] [PATCH 4/6] generator: Move test APIs to new module.