fix crash in UnitTest.cpp on vs.