test coverage for settings api, and fixes on settings api
test fix