Projection-averaging-based cumulative covariance and its use in goodness-of-fit testing for single-index models