Fixed #23750 -- django.core.checks.register can now be used as function

See https://code.djangoproject.com/ticket/23750
create new test method `def test_register_as_function(self):`? or maybe add some comments so the test is a bit easier to follow. There is a lot going on; maybe it could be broken up so it's a bit simpler to follow.