Fixed #23947 -- Django's test suite doesn't pass in reverse order

Fixed inconsistent tests when running Django's test suite with --reverse option.
`TestHashedFiles` seems to be a mixin to avoid repeating the same tests for both test classes (which execute with different `STATICFILES_STORAGE` settings). If you remove the tests like this, they won't be executed at all.