add test for usedFactors