test script now calculates average runs