Fixed query inclusion tests for Django 1.4