Making core tests run on Windows

By making test assertions use the system line separator rather than always `\n`