Unit test for atomic accumulator