Add some basic tests.
Add travis file.