Test version of dynamic reference avg.