replaced `assertIn`s and `assertNotIn`s with `assertContains` and `assertNotContains`