Correct FactorTest

for #122 (and #88)

Deduplication test needed to check for order. Deduplication does not preserve the original order of variables so the test needs to check for the order so that it can perform the correct comparisons.