Failing test showing bug in queryset invalidation