virt: Improves list tests function.

Allow use the new params built-in variable which maps file to variant name.

Signed-off-by: Jiří Župka <jzupka@redhat.com>