Slightly optimize a query in contrib.auth which makes tests start a bit quicker when there are lots of models
Skip tests in contrib.auth that if the connection doesn't support joins
Skip tests in contrib.contenttypes if the connection doesn't support joins