Add tests.

Only testing the basic stuff, covering all options is done in the
client-compiler module.