I think passing the entire map to the format string here is a bit much. We can probably get away with "Expected preferences to contain..."