Add tests and travis build.