Modify test 1 to calculate CV of CVs instead of median change in CVs. Need to convert this whole thing into a function.