add test for counter