Added tests from documentation for fractions.