aggregate: Add simple static function test.