Unit test for settings.