Use ifdef WIN32 for test purpose