Improve test script
Normalize line endings before parsing