Refactored Fraction Test