Convert tests to use assertIsInstance.