Added unit test for class JsonCounterService