fix result check for windows
console.log on windows is \n not \r\n?