add set_settings support and extend test to use it