fix test code

modify the test code(not only support vs)