This is really fragile. Because settings is a global object the tests will break if any part of puppet that somehow is invoked in the tests changes how it interacts with settings in any way. Since settings are reset between every test, it's better to just assert that the settings have changed in the way you want.