Add test cases for counters.