refactor Fraction added unit test