Fixed test_old_api/test_that_contains_none

It was expecting `None in <string>` to raise an AssertionError, while it raises a TypeError