Use Catch unit tests instead of just asserts in testcases tests.

Fixes #43.
Reorganization of "testcases" tests.