Test refactoring for GCounter and some tests added