Fix a compilation pb in UnitTests
Add a critic log in ScriptReader