Fixed the memory allocation problem for VT test