Fixed average calculation

Calculating average in testApp now.