Adding a dep to testing scope and some code change in reflection logic for obtaining a new counter.