[Console] Fix test on windows