Replace assertTrue with assertIs[Not]None whenever possible.

Properly use assertion in test_models unittests.