counter: add atomic increment test case.