Add the test for the merge of preferences