Add toNumber test
Implement toNumber method
Add toFraction test
Implement toFraction method