Change to use assertIsNone() for unit tests.