Add unit tests for settings