[tests] Fix 2.6 support by removing assertIn and assertNotIn