virt: Modify 'test_modules' to be a dictionary

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>