aggregate function, some problems with descendant tests