Tests for collection.contains().