refactors test for settings.py