updating tests to take a 'script' argument