Add tests for domains. Fixes #9.