Add a test to make sure add_settings_error is called