Fixed query count tests on Django 1.6.