Update test to manage script dependencies