added test checking __contains__ operator in LazyObject

Tests for ticket https://code.djangoproject.com/ticket/23782
could we make a class local to this test so we don't have to import `HttpResponseRedirect` here?