Add tests for accumulator.