Optimize runtime of read-and-write C* unit test.
Add more unit tests for counters.