Add first tests.

Add tests with obvious assertions.
Refactor to apply test-findings.