Improvements in TestCase (Unittest and Django). Issue #TP536