Added test case for select_related on proxies