added set_vm_metadata test code