Fixed #18586: rewrote model_package.ModelPackageTests.test_models_packages

Ticket https://code.djangoproject.com/ticket/18586