Test for __contains__ method