null/empty test for groupBy + topN dimExtractionFn