Test contains() method