Add support for continuous integration.
Add tests.