Fixed #22988 - Adjusted an introspection test assertion

Changed test to assertNotIn