DRY: Avoid repetitions in script_test
Merge pull request #4994

54510f2 DRY: Avoid repetitions in script_test (jtimon)