new test script, also for loops through files as input