Changed VM Test code