added test checking __contains__ operator in LazyObject

Tests for ticket https://code.djangoproject.com/ticket/23782
I think the issue is simple enough that we can omit the docstring.