add unit test for settings controller