Cleanup tests

Provide a `unittest.TestCase` version of the doctests. This allows to do both old-style/new-style class tests with less redundant test code.

The old-style test errors. Do you have any idea why? Probably, it should be documented only to use new-style classes..