fix count with group test