[WIP] Refactor test suite to use unittest.

Depends on #36.