changed threshold for average test to 0.998