optimized Fraction and FractionTest, to be reviewed