Added tests for Settings controller