Added test for counter