virt: Remove items() because test_modules is a list

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