test: add tap output for windows

In lieu of having fgets this will strchr the buffer for `\n` and when it finds one adds an `#` afterward