Add a test for merging of existing attribute with foreign key attribute