DRY: Avoid repetitions in script_test

Simple "don't repeat yourself" changes in script_test.
Wait...am I too tired or is this the same as the above?