Improve tests

Tested if the original varaibles did not change the merged variable
values.