Add some tests.

This uses the built-in ERT test framework.