added test checking __contains__ operator in LazyObject

Tests for ticket https://code.djangoproject.com/ticket/23782