Added tests for settings repository