Add unittest tests that supplement current doctests and go a little bit
further in testing more cases.
tox.ini: Run new unittest-based tests in tox