Fixed #22988 -- Adjusted an introspection test assertion.

Also changed test to use assertNotIn.