Add tests for fractions calc