Add two unit tests to verify that we're not updating the preferences if the value is the same.