add test for counter()