Set up the app registry when running tests on django 1.7

This fixes the `RuntimeError: App registry isn't ready yet.` errors.