Factorize code to generate a simulation from a scenario.
Flag scripts as executable.
Correct test.