Script reader, unit tests