#10870 -- added test for aggreations with generic reverse relations

added test for [#10870](https://code.djangoproject.com/ticket/10870)