Change to use FracNumber class
Add more test case.