Updated test script
Fixed line endings
Handle metadata in test renderer