Move tests from unittests to doctests
Represent intervals in cents