select_related should now produce the correct number of queries, and thus the test no longer fails.
Thanks to Jeff Rudokas for the original report and patch.