Add test for deDuplicating variables in Factor