Fix INSTALLED_APPS switch in tests