Updated the VM delete helper functions. Updated the vm test.