Add unit tests for settings service