test: use os.EOL when checking output