Fix test_settings for tests.