Add ratio unit.
Add tests for ratio unit.