I suggest we can use 
|assert.isDefined(settings[key], key)| 
assert.deepEqual(expectedSettings[key], settings[key], key);
so that we may know which item fail the test.