Completed test_vm.py with random name and vm flavors