Refactor testCounter hide