Fix line endings in tests for windows systems
* use nodejs os.EOL to determine line ending