Added tests for #30 and other cases with proxy models
Removed excessive newline
Change on base model now invalidates queries on its proxies and reverse.

Fixes #30