Add try around test_settings import.