fix test of window platform