test generic accumulate