Add missing unit-test coverage for settings controller