add unit tests for accumulator