testinfo function

Function to calculate test information