Gather all metadata

Unittest should avoid running code that queries the production database to
avoid unexpected behaviour (hanging and crashing).
See <https://docs.djangoproject.com/en/dev/topics/testing/overview/>