add test case for resettable counter