DRY: Avoid repetitions in script_test