added tests to Discretizer FactorGaps