Fix PlotTest on windows