Adding test for simplify_fractions